package v1

import (
	"Sailor/app/Sailor-console-server/internal/model/entity"
	"github.com/gogf/gf/v2/frame/g"
)

type SettingRoleListReq struct {
	g.Meta   `path:"/setting/role/list" tags:"setting" method:"get" summary:"分页获取角色列表"`
	PageSize int `json:"pageSize" v:"required|between:1,50#pageSize为必填参数|pageSize应大于等于1且小于等于50"`
	Page     int `json:"page" v:"required|min:0#page为必填参数|page应大于等于0"`
}

type SettingRoleListRes struct {
	PageSize int              `json:"pageSize"`
	Page     int              `json:"page"`
	Total    int              `json:"total"`
	Rows     []entity.SysRole `json:"rows"`
}
